-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add leave team button #11757
Add leave team button #11757
Conversation
resources/views/teams/show.blade.php
Outdated
$buttons = new Ds\Set(); | ||
if ($currentUser !== null && $currentUser->team?->getKey() === $team->getKey() && $currentUser->getKey() !== $team->leader_id) { | ||
$buttons->add('part'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there more buttons coming 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why yes 👀
resources/views/teams/show.blade.php
Outdated
method="POST" | ||
> | ||
<button class="team-action-button team-action-button--part"> | ||
{{ osu_trans('teams.show.bar.part') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too many idents btw
sec, I think it's more convenient to just add an OsuAuthorize check |
Apart of the message that needs fixing, I wonder if the route should have team id in it... (there's also question of if it's worth adding an OsuAuthorize check for this)